package com.mq.server.config;

import com.mq.server.constant.MyConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <h3>partitionjob</h3>
 * <p>rabbitmq 配置 队列 交换机 路由 虚拟机</p>
 *
 * @author : hduong
 * @version : 1.0
 * @date : 2019-12-19 09:28
 **/
@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue helloQueue() {
        return new Queue(MyConstants.HELLO_QUEUE);
    }
}
